package com.three.dao;

import com.three.domain.Leaves;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface LeavesDao {

    public int PageCount(@Param("id") Integer id,@Param("date") String date);
    // 查询请假列表
    public List<Leaves> leavesList(@Param("id") Integer id,
                                   @Param("pageIndex") Integer pageIndex,
                                   @Param("pageSize") Integer pageSize,
                                   @Param("date") String date

                                   );
    //添加请假
    public int addLeaves(Leaves leaves);




    int PageCountLeaves();
    //        查询待审批请假列表
    List<Leaves> getLeaves(@Param("pageIndex")Integer pageIndex,@Param("pageSize")Integer pageSize);
    //        操作审核请假
    void updateLeaveStatus( Map<String, Object> params);
}
